package com.cfc.mongodb.entity;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

/**
 * @Description: 实体类
 * @Copyright: Copyright (c) 2020  ALL RIGHTS RESERVED.
 * @Company: 中钧科技陕西分公司
 * @Author: anxiaojian
 * @CreateDate: 2021/12/15 11:35
 * @Version: 1.0
 */
@Data
@Document(collection = "student")
public class StudentEntity extends MongoDbBaseModel{

    /**
     * 姓名
     */
    private String name;
    /**
     * 年龄
     */
    private Integer age;

    /**
     * 分数
     */
    private Integer score;

    /**
     * 关联编号
     */
    private List<String> nos;
    /**
     * 描述信息
     */
    private String desp;

    /**
     * 数量统计
     */
    private Integer count;

    /**
     * 喜欢科目
     */
    private List<String> subjects;


}
